package priv.menguer.front.controller;

/**
 * @Title Dispatcher.java
 * @description TODO
 * @time 2018年10月26日 下午2:30:22
 * @author menguer@126.com
 * @version 1.0
 */
public class Dispatcher {
	private StudentView studentView;
	private HomeView homeView;

	public Dispatcher() {
		studentView = new StudentView();
		homeView = new HomeView();
	}

	public void dispatch(String request) {
		if (request.equalsIgnoreCase("STUDENT")) {
			studentView.show();
		} else {
			homeView.show();
		}
	}
}
